<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增考勤规则')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-rule-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">适用年份：</label>
                <div class="col-sm-8">
                    <input name="suitYear" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作日星期：</label>
                <div class="col-sm-8">
                    <input name="workDay" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">上班开始时间：</label>
                <div class="col-sm-8">
                    <input name="startTime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">上班迟到时间：</label>
                <div class="col-sm-8">
                    <input name="lateTime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">旷工时间：</label>
                <div class="col-sm-8">
                    <input name="absenceTime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">下班时间：</label>
                <div class="col-sm-8">
                    <input name="endTime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">早退时间：</label>
                <div class="col-sm-8">
                    <input name="earlyLeaveTime" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">元旦假期：</label>
                <div class="col-sm-8">
                    <input name="newYearHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">春节假期：</label>
                <div class="col-sm-8">
                    <input name="springFestivalHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">清明假期：</label>
                <div class="col-sm-8">
                    <input name="qingmingHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">五一假期：</label>
                <div class="col-sm-8">
                    <input name="fiveOneHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">端午假期：</label>
                <div class="col-sm-8">
                    <input name="duanWuHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">中秋假期：</label>
                <div class="col-sm-8">
                    <input name="zhongQiuHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">国庆假期：</label>
                <div class="col-sm-8">
                    <input name="guoQinHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">其他假期：</label>
                <div class="col-sm-8">
                    <input name="otherHolidays" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">租户id：</label>
                <div class="col-sm-8">
                    <input name="tenantId" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/rule"
        $("#form-rule-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-rule-add').serialize());
            }
        }
    </script>
</body>
</html>